package boxe.timer;

/**
 * the run pack contain a latance, a run an a wit run
 * 
 * @author Julien Perriard
 * @date 25.05.2010
 *
 */
import java.util.ArrayList;
import java.util.List;

public class RunPack {

	private Run latance;
	private Run run;
	private Run wait;
	private String name;
	
	public RunPack() {
	latance = new Run();
	run = new Run();
	wait = new Run();
	}

	public Run getLatance() {
		return latance;
	}

	public void setLatance(Run latance) {
		this.latance = latance;
	}

	public Run getRun() {
		return run;
	}

	public void setRun(Run run) {
		this.run = run;
	}

	public Run getWait() {
		return wait;
	}

	public void setWait(Run wait) {
		this.wait = wait;
	}
	
	public List<Run> getListRun() {
		List<Run> listRun = new ArrayList<Run>();
		if(latance != null) {
			listRun.add(latance);
		}
		if(run != null) {
			listRun.add(run);
		}
		if(wait != null) {
			listRun.add(wait);
		}
		return listRun;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
